package com.kaigejava.factorypattern.method;

/**
 * Created by kaigejava on 2019/8/24.
 * 披萨顶级抽象类
 */
public abstract class PizzaAbstract {
    /**
     * 披萨名称
     */
    protected String name;

    /**
     * 披萨原材料-抽象的
     */
    public abstract void prepare();

    /**
     * 烘培方法
     */
    public void bake()
    {
        System.out.println(name+" 正在烘培中~baking;");
    }
    public void cut()
    {
        System.out.println(name+" 正在切割中~cutting;");
    }
    public void box()
    {
        System.out.println(name+" 正在打包中~boxing;");
    }
    public void setname(String name)
    {
        this.name=name;
    }
}
